<?php

namespace Wechat\Helper;

use Hyperf\Contract\ConfigInterface;
use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\Server\CoroutineServer;
use Psr\Container\ContainerInterface;
use Swoole\Http\Response;

class Sender
{
    /**
     * @var ContainerInterface
     */
    protected $container;

    /**
     * @var StdoutLoggerInterface
     */
    protected $logger;

    /**
     * @var int
     */
    protected $workerId;

    /**
     * @var Response[]
     */
    protected $responses = [];

    /**
     * @var bool
     */
    protected $isCoroutineServer = false;

    public function __construct(ContainerInterface $container)
    {
        $this->container = $container;
    }

    public function getSender()
    {
        return $this->container->get(\Hyperf\WebSocketServer\Sender::class);
    }

}